package com.ruoyi.qt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qt.mapper.QtRecordMapper;
import com.ruoyi.qt.domain.QtRecord;
import com.ruoyi.qt.service.IQtRecordService;

/**
 * 做题记录Service业务层处理
 * 
 * @author zqq
 * @date 2021-12-06
 */
@Service
public class QtRecordServiceImpl implements IQtRecordService 
{
    @Autowired
    private QtRecordMapper qtRecordMapper;

    /**
     * 查询做题记录
     * 
     * @param recordId 做题记录主键
     * @return 做题记录
     */
    @Override
    public QtRecord selectQtRecordByRecordId(String recordId)
    {
        return qtRecordMapper.selectQtRecordByRecordId(recordId);
    }

    /**
     * 查询做题记录列表
     * 
     * @param qtRecord 做题记录
     * @return 做题记录
     */
    @Override
    public List<QtRecord> selectQtRecordList(QtRecord qtRecord)
    {
        return qtRecordMapper.selectQtRecordList(qtRecord);
    }

    /**
     * 新增做题记录
     * 
     * @param qtRecord 做题记录
     * @return 结果
     */
    @Override
    public int insertQtRecord(QtRecord qtRecord)
    {
        return qtRecordMapper.insertQtRecord(qtRecord);
    }

    /**
     * 修改做题记录
     * 
     * @param qtRecord 做题记录
     * @return 结果
     */
    @Override
    public int updateQtRecord(QtRecord qtRecord)
    {
        return qtRecordMapper.updateQtRecord(qtRecord);
    }

    /**
     * 批量删除做题记录
     * 
     * @param recordIds 需要删除的做题记录主键
     * @return 结果
     */
    @Override
    public int deleteQtRecordByRecordIds(String[] recordIds)
    {
        return qtRecordMapper.deleteQtRecordByRecordIds(recordIds);
    }

    /**
     * 删除做题记录信息
     * 
     * @param recordId 做题记录主键
     * @return 结果
     */
    @Override
    public int deleteQtRecordByRecordId(QtRecord qtRecord)
    {
        return qtRecordMapper.deleteQtRecordByRecordId(qtRecord);
    }
}
